Base Classes
Member Functions
SetServerName
SetRoot
ConnectToServer
QueryStringValue
DisconnectFromServer
QueryStringPrivate
OpenRemoteKey
DisplayError
Test
Top of Document
Parameters
| sServerName | String. |
Boolean = SetRoot(nRootKeyToSet)
Public function:
This function will set the root key for the subsequent functions to use.
Valid root keys are:
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_PERFORMANCE_DATA
HKEY_CURRENT_CONFIG
HKEY_DYN_DATA
Use:
Boolean SetRoot( HKEY_LOCAL_MACHINE )
Parameters:
Root key
Returns:
TRUE if the function succeeds.
FALSE if the function fails.
Parameters
| nRootKeyToSet | Number. |
Boolean = ConnectToServer()
Public function:
This function will connect you to the server and root specified in
SetServerName() and SetRoot()
Use:
Boolean ConnectToServer ()
Parameters:
None
Returns:
TRUE if the function connects to remote registry.
FALSE if the function fails to connect to the remote registry.
Parameters
Boolean = QueryStringValue(sPath,sValue,sReturn)
Public function:
This function will return the value for a string using the specified path and value name.
Use:
Boolean QueryStringValue('Software\\Test', 'test1', sRegValue)
Parameters:
Path: The path in the registry.
Value: The value to query.
Return string: A string to place the value into.
Returns:
TRUE if the function succeeds.
FALSE if the function fails.
Parameters
| sPath | String. |
| sValue | String. |
| sReturn | Receive String. |
Boolean = DisconnectFromServer(nHandleToClose)
This function will retun TRUE if the handle is disconnected sucessfully.
Parameters
| nHandleToClose | Number. |
Number = QueryStringPrivate(sValueName,sReturnString)
Private function
Parameters
| sValueName | String. |
| sReturnString | Receive String. |
Number = OpenRemoteKey(sPath)
Private function
Parameters
| sPath | String. |
Number = DisplayError(nTest)
Private function
Parameters
| nTest | Number. |
Number = Test()
This is a demo function to show how to retrieve a string from a remote registry.
Parameters